package org.example.swagger01.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName MyEntity.java
 * @Description TODO
 * @createTime 2021年04月17日 15:08:00
 */
@ApiModel(value = "自定义实体",description = "存储数据") //描述一个实体类型
public class MyEntity implements Serializable {


    @ApiModelProperty(value = "主键",name = "主键(id)",required = false,example = "w",hidden = false)
    private String id;
    @ApiModelProperty(value = "用户名",name = "用户名(name)",required = false,example = "name",hidden = false)
    private String name;
    @ApiModelProperty(value = "密码",name = "密码(id)",required = false,example = "pas",hidden = false)
    private String paswd;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPaswd() {
        return paswd;
    }

    public void setPaswd(String paswd) {
        this.paswd = paswd;
    }
}
